# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=remind
pkgver=05.00.07
pkgrel=0
pkgdesc="Sophisticated calendar and alarm program"
url="https://dianne.skoll.ca/projects/remind/"
arch="all"
license="GPL-2.0-only"
checkdepends="tzdata"
options="!check"
subpackages="$pkgname-doc tkremind::noarch"
source="https://dianne.skoll.ca/projects/remind/download/remind-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make -j1 test
}

package() {
	make DESTDIR="$pkgdir" install
}

tkremind() {
	depends="$pkgname=$pkgver-r$pkgrel tk tcl-lib"

	amove usr/bin/tkremind
	amove usr/share/applications/tkremind.desktop
	amove usr/share/pixmaps/tkremind.png
}

sha512sums="
a6954fedc10a6c5534980cbbfb6366bb7e26bef0ff74038166be8dc7f6910960649b6b20a38cf9ff052985b7db770c87a202fcbc7d87ce10121dd459accce036  remind-05.00.07.tar.gz
"
